//
//  PayView.m
//  跨界收
//
//  Created by Allen on 2018/11/8.
//  Copyright © 2018年 gztx. All rights reserved.
//

#import "PayView.h"

@implementation PayView
- (IBAction)close:(id)sender {
    if (self.closeBlock) {
        self.closeBlock(sender);
    }
}
- (IBAction)pay:(id)sender {
    if (self.payBlock) {
        self.payBlock(sender);
    }
}

+ (PayView *)shareIntance
{
    PayView *payView = [[[NSBundle mainBundle]loadNibNamed:@"PayView" owner:self options:nil] lastObject];
    payView.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:.6];
    return payView;
}
@end
